"use strict";
const common_vendor = require("../../../../../../../common/vendor.js");
if (!Array) {
  const _easycom_up_text2 = common_vendor.resolveComponent("up-text");
  const _easycom_up_calendar2 = common_vendor.resolveComponent("up-calendar");
  const _easycom_up_datetime_picker2 = common_vendor.resolveComponent("up-datetime-picker");
  const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
  (_easycom_up_text2 + _easycom_up_calendar2 + _easycom_up_datetime_picker2 + _easycom_up_button2)();
}
const _easycom_up_text = () => "../../../../../../../node-modules/uview-plus/components/u-text/u-text.js";
const _easycom_up_calendar = () => "../../../../../../../node-modules/uview-plus/components/u-calendar/u-calendar.js";
const _easycom_up_datetime_picker = () => "../../../../../../../node-modules/uview-plus/components/u-datetime-picker/u-datetime-picker.js";
const _easycom_up_button = () => "../../../../../../../node-modules/uview-plus/components/u-button/u-button.js";
if (!Math) {
  (_easycom_up_text + _easycom_up_calendar + _easycom_up_datetime_picker + _easycom_up_button)();
}
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  __name: "index",
  setup(__props) {
    const dateShow = common_vendor.ref(false);
    const dateValue = common_vendor.ref("请选择记录的日期");
    const dateConfirm = (e) => {
      console.log(e);
      dateValue.value = e[0];
      dateShow.value = false;
    };
    const timeShow = common_vendor.ref(false);
    const timeValue = common_vendor.ref("请选择记录的时间");
    const timeConfirm = (e) => {
      timeValue.value = e;
      timeShow.value = false;
    };
    const user = common_vendor.ref({
      SBP: null,
      DBP: null,
      BPM: null
    });
    return (_ctx, _cache) => {
      return {
        a: common_vendor.p({
          text: "记录日期"
        }),
        b: common_vendor.o(($event) => dateShow.value = false),
        c: common_vendor.o(dateConfirm),
        d: common_vendor.p({
          show: dateShow.value,
          ["min-date"]: "2024-01-01",
          ["max-date"]: "2029-12-31",
          ["month-num"]: "120"
        }),
        e: common_vendor.o(($event) => dateShow.value = true),
        f: common_vendor.p({
          type: "info",
          text: `${dateValue.value}  >`,
          align: "right"
        }),
        g: common_vendor.p({
          text: "记录时间"
        }),
        h: common_vendor.o(($event) => timeShow.value = false),
        i: common_vendor.o(timeConfirm),
        j: common_vendor.p({
          show: timeShow.value,
          mode: "time"
        }),
        k: common_vendor.o(($event) => timeShow.value = true),
        l: common_vendor.p({
          type: "info",
          text: `${timeValue.value}  >`,
          align: "right"
        }),
        m: common_vendor.p({
          text: "高压（收缩压）"
        }),
        n: !_ctx.isValid ? 1 : "",
        o: common_vendor.o([
          ($event) => user.value.SBP = $event.detail.value,
          //@ts-ignore
          (...args) => _ctx.handleInput && _ctx.handleInput(...args)
        ]),
        p: user.value.SBP,
        q: common_vendor.p({
          text: "mmHg",
          align: "right"
        }),
        r: common_vendor.p({
          text: "低压（舒张压）"
        }),
        s: !_ctx.isValid ? 1 : "",
        t: common_vendor.o([
          ($event) => user.value.DBP = $event.detail.value,
          //@ts-ignore
          (...args) => _ctx.handleInput && _ctx.handleInput(...args)
        ]),
        v: user.value.DBP,
        w: common_vendor.p({
          text: "mmHg",
          align: "right"
        }),
        x: common_vendor.p({
          text: "心率"
        }),
        y: !_ctx.isValid ? 1 : "",
        z: common_vendor.o([
          ($event) => user.value.BPM = $event.detail.value,
          //@ts-ignore
          (...args) => _ctx.handleInput && _ctx.handleInput(...args)
        ]),
        A: user.value.BPM,
        B: common_vendor.p({
          text: "次/分钟",
          align: "right"
        }),
        C: common_vendor.p({
          type: "info",
          text: "指标正常范围"
        }),
        D: common_vendor.p({
          type: "info",
          text: "高压：90-139mmHg"
        }),
        E: common_vendor.p({
          type: "info",
          text: "低压：60-89mmHg"
        }),
        F: common_vendor.p({
          type: "info",
          text: "脉搏：60-100次/分钟"
        }),
        G: common_vendor.p({
          type: "primary",
          text: "增加记录"
        })
      };
    };
  }
});
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-d1bca521"]]);
wx.createPage(MiniProgramPage);
